package com.cqc.jdk8.Jmath;

import org.junit.Test;

/**
 * @author cui
 * @date 2024/4/8 20:37
 * @description
 **/
public class NumberTest {
    /**
     * 只有 float  double 才有小数
     */
    @Test
    public void f1() {
        double a = 12345;
        double b = a / 100;
        //123.45
        System.out.println(b);

        int c = 12345;
        int d = c / 100;
        //123
        System.out.println(d);

        float e = 12345f;
        float f = e / 100;
        //123.45
        System.out.println(f);

        long g = 12345L;
        long h = g / 100;
        //123
        System.out.println(h);
    }
}
